home *** CD-ROM | disk | FTP | other *** search
- Path: gryphon.phoenix.net!usenet
- From: brucew@phoenix.net (Bruce Wedding)
- Newsgroups: comp.lang.c
- Subject: Can a structure element be static?
- Date: Mon, 18 Mar 1996 04:56:55 GMT
- Organization: BranPaul Systems
- Message-ID: <4iiqgm$3n3@gryphon.phoenix.net>
- NNTP-Posting-Host: dial108.phoenix.net
- X-Newsreader: Moe's Newsreader
-
- I was recently asked if a struct element can be static. I
- replied of course not, since all elements of a struct have to be
- contiguous, the entire struct has to be static. I then searched
- the standard. I can't really pin down a spot that would disallow
- this other than the inference one can draw from the statement
- that all addresses must be in order.
-
- In any event, I don't own a compiler that will accept a static
- element, and I've tried it on 5 compilers. The poser claims that
- such a struct will compile on TC 1.0 for dos and BC 4.5 for dos.
- Not having either, I have no way of verifying these statements.
-
-
- Bruce D. Wedding Have Compiler, Will Travel!
- Perspicacious Programming Performed Promptly
- Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
-
-